<?
//Header("Location: maintenance.html");
//exit(0);

session_cache_expire(28800);
session_start();
include_once('configuration.php');
include_once('functions.php');

include_once(PROJECT_ROOT.'classes/classes.php');

  header("Content-Type: text/html; charset=windows-1251");

  // set application wide parameters
  $query = 'select configurationKey, configurationValue from '.TABLE_CONFIGURATION;
  $cfg = $db->query($query);
  while ($row=mysql_fetch_array($cfg, MYSQL_ASSOC)) {
	   define($row['configurationKey'], $row['configurationValue']);
  }

  include_once('language.php');
  include_once(PROJECT_ROOT.'includes/skins.php');
  if(is_file(SKIN_PATH.'includes/design_functions.php'))
  {
	  include_once(SKIN_PATH.'includes/design_functions.php');
  }
?>
